package com.journey.org.ui.test

import android.content.Intent
import android.os.Bundle
import android.view.LayoutInflater
import android.view.ViewGroup
import com.journey.org.BR
import com.journey.org.R
import com.journey.org.databinding.FragmentContinuousCallBinding
import com.mvvmhabit.org.base.BaseFragment
import com.mvvmhabit.org.base.ContainerActivity

class ContinuousCallFragment :
    BaseFragment<FragmentContinuousCallBinding, ContinuousCallViewModel>() {

    override fun initVariableId(): Int = BR.viewModel

    override fun initViewModel(): Class<ContinuousCallViewModel> =
        ContinuousCallViewModel::class.java

    override fun initContentView(
        inflater: LayoutInflater?,
        container: ViewGroup?,
        savedInstanceState: Bundle?
    ): Int = R.layout.fragment_continuous_call

    override fun initData() {
        super.initData()
        val intent = Intent(activity, PhoneService::class.java)
        activity?.startService(intent)
    }
}